webpackJsonp([2],{

/***/ "9uBv":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var ctx = __webpack_require__("3fMt");
var $export = __webpack_require__("Wdy1");
var toObject = __webpack_require__("wXdB");
var call = __webpack_require__("tn1D");
var isArrayIter = __webpack_require__("yuYM");
var toLength = __webpack_require__("GhAV");
var createProperty = __webpack_require__("Uy0O");
var getIterFn = __webpack_require__("1yV6");

$export($export.S + $export.F * !__webpack_require__("wWcv")(function (iter) { Array.from(iter); }), 'Array', {
  // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
    var O = toObject(arrayLike);
    var C = typeof this == 'function' ? this : Array;
    var aLen = arguments.length;
    var mapfn = aLen > 1 ? arguments[1] : undefined;
    var mapping = mapfn !== undefined;
    var index = 0;
    var iterFn = getIterFn(O);
    var length, result, step, iterator;
    if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
    // if object isn't iterable or it's array with default iterator - use simple case
    if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
      for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
        createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
      }
    } else {
      length = toLength(O.length);
      for (result = new C(length); length > index; index++) {
        createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
      }
    }
    result.length = index;
    return result;
  }
});


/***/ }),

/***/ "DwaN":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("zhzB");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__("rjj0")("34ffd35f", content, true, {});

/***/ }),

/***/ "Gu7T":
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _from = __webpack_require__("c/Tr");

var _from2 = _interopRequireDefault(_from);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
      arr2[i] = arr[i];
    }

    return arr2;
  } else {
    return (0, _from2.default)(arr);
  }
};

/***/ }),

/***/ "Uy0O":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $defineProperty = __webpack_require__("GCs6");
var createDesc = __webpack_require__("YTz9");

module.exports = function (object, index, value) {
  if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  else object[index] = value;
};


/***/ }),

/***/ "c/Tr":
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__("fRJi"), __esModule: true };

/***/ }),

/***/ "dn1S":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__("Gu7T");
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vux-loader/src/script-loader.js!./node_modules/vux-loader/src/script-loader.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/view/loanPage/productIndex.vue

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ var productIndex = ({
    name: 'productIndex',
    data: function data() {
        return {
            accountList: [],
            accountPicker: false,
            selectedAccount: '',
            selectedfrOrg: '',
            FRList: [],
            FrOrg: '',
            LOAN_TERMList: ['3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
            FrPicker: false,
            termPicker: false,
            showPicker: false,
            selectedOrg: '',
            orgList: [],
            formHeight: {
                CORP_NAME: '4rem',
                LOAN_TERM: '4rem',
                LEGAL_PERSON_NAME: '4rem',
                NUMBER: '4rem',
                CORP_BUSINESS_SCOPE: '4rem',
                SCOPE_ID: '4rem',
                APPLY_AMOUNT: '4rem',
                CERT_NO: '4rem'

            },
            APPLY_AMOUNT: '',
            CORP_NAME: '',
            LOAN_TERM: '',
            LEGAL_PERSON_NAME: '',
            NUMBER: '',
            CORP_BUSINESS_SCOPE: '',
            SCOPE_ID: '',
            REGI_ORG: '',
            LOAN_MARKETING_NAME: '',
            CERT_TYPE: '', //营业执照类型
            CERT_NO: '', //统一社会信用代码
            TYPE: '', //工商-企业类型
            BUSINESS_CITY: '', //经营城市
            BUSINESS_CITY_CODE: '', //城市编码
            BUSINESS_DISTRICT: '', //经营区域
            BUSINESS_DISTRICT_CODE: '', //区域代码
            CERTIFICATE_VALIDITY: '', //组织机构有效期限
            BUILD_DATE: '', //成立日期
            CORP_CUST_NO: '', //信贷客户号
            CORP_HXKHBH: '', //核心客户号
            CORP_ZZJGDM: '', //组织机构代码
            REGI_CURR: '', // 注册资本币种
            ACT_CURR: '', //实收资本币种
            REGI_CAPITAL: '', // 注册资本
            ACT_CAPITAL: '', // 实收资本
            TIME_MARK: '', //影像时间
            BUSINESS_NUM: '', //合同号
            productName: '', //产品码值
            accountphone: '',
            userid: '',
            usercode: '',
            openid: ''
        };
    },
    mounted: function mounted() {
        console.log(this.__ctx);
        console.log("production");
    },
    created: function created() {
        if (this.$route.query.id == '1') {
            //id=1 助企流水贷
            this.productName = '030113';
        } else {
            //助企周转贷
            this.productName = '030114';
        }
        this.userid = this.$route.query.userid;
        this.usercode = this.$route.query.usercode;
        this.openid = this.$route.query.openid;
    },

    methods: {
        termConfirm: function termConfirm(item) {
            this.LOAN_TERM = item;
            this.termPicker = false;
        },
        accountConfirm: function accountConfirm(item) {
            // // 使用Fisher-Yates算法打乱数组
            console.log(this.selectedAccount);
            this.selectedAccount = item.text; // 更新字段显示的是选中项的名称
            this.LOAN_MARKETING_NAME = item.value; // 更新字段显示的是选中项的名称
            this.accountphone = item.phone;
            this.accountPicker = false;
        },
        FrConfirm: function FrConfirm(item) {
            console.log(item);
            this.selectedfrOrg = item.text; // 更新字段显示的是选中项的名称
            this.FrOrg = item.value; // 更新字段显示的是选中项的名称
            this.FrPicker = false;
            this.getChengeOrg(this.FrOrg);
        },

        //获取经办机构
        getChengeOrg: function getChengeOrg(value) {
            var value = value;
            var that = this;
            that.orgList = [];
            that.selectedOrg = '';
            that.REGI_ORG = '';
            var data = {
                RgstUsrId: that.SCOPE_ID, //注册地址
                UsrNm: that.BUSINESS_NUM //合同号
            };
            that.$api.GetOrgSearch(data).then(function (res) {
                console.log(res, 211);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.LegInfArr.length; i++) {
                        if (value == res.Data.LegInfArr[i].LegCd) {
                            for (var j = 0; j < res.Data.LegInfArr[i].BrInfArr.length; j++) {
                                that.orgList.push({
                                    text: res.Data.LegInfArr[i].BrInfArr[j].BrNm,
                                    value: res.Data.LegInfArr[i].BrInfArr[j].BrCd
                                });
                            }
                        }
                    }
                    console.log(that.orgList);
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        handleConfirm: function handleConfirm(item) {

            this.selectedOrg = item.text; // 更新字段显示的是选中项的名称
            this.REGI_ORG = item.value; // 更新字段显示的是选中项的名称
            console.log(this.REGI_ORG, this.selectedOrg);
            this.GetOrgList();
            this.showPicker = false;
        },
        GetOrgList: function GetOrgList() {
            var _this = this;

            var that = this;
            that.accountList = [];
            that.selectedAccount = '';
            that.LOAN_MARKETING_NAME = '';
            var data = {
                "AgnOrg": that.REGI_ORG,
                'PactNo': that.BUSINESS_NUM
            };
            that.$api.GetAccountList(data).then(function (res) {
                console.log(res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.UsrInfArr.length; i++) {
                        that.accountList.push({
                            text: res.Data.UsrInfArr[i].UsrNm,
                            value: res.Data.UsrInfArr[i].UsrId,
                            phone: res.Data.UsrInfArr[i].MblTel
                        });
                    }
                    var array = [].concat(toConsumableArray_default()(_this.accountList));
                    var currentIndex = array.length;
                    var temporaryValue = void 0,
                        randomIndex = void 0;
                    while (0 !== currentIndex) {
                        randomIndex = Math.floor(Math.random() * currentIndex);
                        currentIndex -= 1;
                        temporaryValue = array[currentIndex];
                        array[currentIndex] = array[randomIndex];
                        array[randomIndex] = temporaryValue;
                    }
                    _this.accountList = array;
                } else {
                    _this.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        submit: function submit() {
            var that = this;
            if (!this.CORP_NAME) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入企业名称！'
                });
                return;
            }
            if (!this.LOAN_TERM) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择申请期限！'
                });
                return;
            }
            if (!this.APPLY_AMOUNT) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入申请金额(万元)！'
                });
                return;
            }
            if (!this.LEGAL_PERSON_NAME) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入法人姓名！'
                });
                return;
            }
            if (!this.NUMBER) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入联系电话！'
                });
                return;
            }
            if (!this.CORP_BUSINESS_SCOPE) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入经营范围！'
                });
                return;
            }
            if (!this.SCOPE_ID) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入经营地址！'
                });
                return;
            }
            if (!this.selectedfrOrg) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择法人机构！'
                });
                return;
            }
            if (!this.selectedOrg) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择经办机构！'
                });
                return;
            }
            if (!this.selectedAccount) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择经办人员！'
                });
                return;
            }
            this.$toast.loading({
                duration: 0,
                message: '派单发起中...',
                forbidClick: true
            });
            that.getplms130();
        },
        getEnterName: function getEnterName() {
            //获取合同号

            var that = this;
            var data = {};
            that.$api.GetBussines(data).then(function (res) {

                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.BUSINESS_NUM = res.Data.SpecificData;
                    that.BusinessNumber();
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        BusinessNumber: function BusinessNumber() {
            var _this2 = this;

            //工商查询
            var that = this;
            var orgcode = '';
            if (this.usercode) {
                orgcode = this.usercode;
            } else {
                orgcode = '1018';
            }

            var data = {
                "EntpNm": that.CORP_NAME,
                // "EntpNm":'沈阳富仕名嘉商贸有限公司',
                "AgnOrg": orgcode,
                // "AgnOrg":this.usercode,
                "PactNo": that.BUSINESS_NUM
                // "PactNo":'123456'
            };
            that.$api.GetEnterName(data).then(function (res) {
                console.log(111, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.SCOPE_ID = res.Data.CompanyAdr; //经营地址（同注册地址）
                    that.CERT_TYPE = "610005"; // 固定赋值为：610005-营业执照
                    that.CERT_NO = res.Data.CreditCd; // 统一社会信用代码
                    that.CORP_NAME = res.Data.EntpNm; // 企业名称
                    that.TYPE = res.Data.EntpTy; // 工商-企业类型
                    that.BUSINESS_CITY = res.Data.BsnCity; // 经营城市
                    that.BUSINESS_CITY_CODE = res.Data.BsnCityCd; // 经营城市编码
                    that.BUSINESS_DISTRICT = res.Data.CompanyAdr; // 经营区域
                    that.BUSINESS_DISTRICT_CODE = res.Data.BsnDivsCd; // 经营区域编码
                    if (res.Data.BrCd) {
                        that.CORP_ZZJGDM = res.Data.BrCd.substring(0, res.Data.BrCd.length - 1) + '-' + res.Data.BrCd.substring(res.Data.BrCd.length - 1, res.Data.BrCd.length); //组织机构代码
                    }
                    var OPTO = res.Data.VldTerm;
                    if (OPTO == "长期") {
                        OPTO = "9999-12-31";
                    }
                    that.CERTIFICATE_VALIDITY = OPTO; //组织机构有效期限
                    that.CORP_BUSINESS_SCOPE = res.Data.BsnScop; //经营范围
                    that.LEGAL_PERSON_NAME = res.Data.LegNm; //法人姓名
                    // that.NUMBER = res.Data.Tel //电话

                    that.REGI_ORG = res.Data.RgstInst; // 登记机关
                    var REGCAP = res.Data.RgstCap ? res.Data.RgstCap * 10000 : 0;
                    var RECCAP = res.Data.PdupCap ? res.Data.PdupCap * 10000 : 0;
                    that.REGI_CAPITAL = REGCAP; // 注册资本
                    that.ACT_CAPITAL = RECCAP; // 实收资本
                    that.BUILD_DATE = res.Data.RgstDt; // 成立日期
                    that.getplms128();
                } else {
                    _this2.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: "请检查企业名称是否输入正确，并重试！"
                    });
                }
            });
        },

        // 
        getplms128: function getplms128() {
            //法人机构信息查询(非异地)
            var that = this;
            that.FRList = [];
            var data = {
                RgstUsrId: that.SCOPE_ID, //注册地址
                UsrNm: that.BUSINESS_NUM //合同号
            };
            that.$api.GetOrgSearch(data).then(function (res) {
                console.log(res, 111111);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.LegInfArr.length; i++) {
                        that.FRList.push({
                            text: res.Data.LegInfArr[i].LegNm,
                            value: res.Data.LegInfArr[i].LegCd
                        });
                    }
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        getplms130: function getplms130() {
            var _this3 = this;

            // 辽宁艾斯兰德科技有限公司
            var data = {
                "IdentTp": "6100AA", //证件类型
                "EntpNm": this.CORP_NAME, //企业名称
                "Flag": "1", //是否进行订单分发字段
                "CstMgrNo": this.LOAN_MARKETING_NAME, //营销人
                "IdentNo": this.CERT_NO, //统一社会信用代码
                "BsnAdr": this.SCOPE_ID, //注册地址
                "AgnOrg": this.REGI_ORG //经办机构

                // var data = {
                //     "IdentCustName":'沈阳富仕名嘉商贸有限公司',
                //     'IdentType':'6100AA',
                //     'IdentNo':'91210105MABNCF6Q56',
                //     'isAllocation':'1',
                //     'RegAddress':'辽宁省沈阳市和平区',
                //     'orgCode':'1096',
                //     'managerId':'112221',

                // }
            };var that = this;
            that.$api.GetStockCstDtMng(data).then(function (res) {
                // that.baseService.post(this.__ctx + '/api/mini/dataGovernance', data).then(res => {
                console.log(1, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    var managerId = res.Data.CstMgrNo;
                    var corporCd = res.Data.LegCd;
                    var orgCode = res.Data.AgnOrg;
                    var phone = res.Data.CstMgrTel;
                    var AcctOpnFlg = res.Data.AcmFlg; //新老客户标识
                    that.CORP_CUST_NO = res.Data.CoopCstNo; //信贷客户号
                    that.CORP_HXKHBH = res.Data.CoreCstNo; //核心客户号
                    that.TIME_MARK = res.Data.Tmstmp;

                    that.startInstance(managerId, corporCd, orgCode, AcctOpnFlg);
                } else if (res.Head.RspSt == '203') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户证件号码与存量客户信息中的证件号码不一致!'
                    });
                } else if (res.Head.RspSt == '204') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '当前用户存在多条客户信息请进行数据治理!'
                    });
                } else if (res.Head.RspSt == '205') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户名称与存量客户信息中的客户名称不一致!'
                    });
                } else if (res.Head.RspSt == '206') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户认定为新客户但是信贷系统中存在客户信息!'
                    });
                } else {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '系统开小差了!'
                    });
                }
            });
        },

        // 埋点
        getBurialPoint: function getBurialPoint() {
            var that = this;
            var key = '';
            var serviceType = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
                serviceType = '8206';
            } else {
                //助企周转贷
                key = '助企周转贷';
                serviceType = '8306';
            }
            var data = {
                CstToken: that.openid, //微信OPENID
                BurTp: '2', //	埋点类型
                BsnTp: serviceType, //	业务类型
                BrNo: '', //	网点机构
                LegCd: that.usercode, //法人机构
                CstMgrNo: that.userid, //	客户经理ID
                PdNo: that.BUSINESS_NUM, //	产品ID
                PdTp: that.LOAN_TERM, //	产品类型
                PdNm: key, //	产品名称
                PdGrp: that.APPLY_AMOUNT, //	产品组
                ChnlSrc: '' //	来源渠道

            };
            console.log(data);
            that.$api.UpBurialPointData(data).then(function (res) {
                console.log(res);
            });
        },
        startInstance: function startInstance(managerId, corporCd, orgCode, AcctOpnFlg) {
            var _this4 = this;

            var that = this;
            var managerId = managerId;
            var corporCd = corporCd;
            var orgCode = orgCode;
            var AcctOpnFlg = AcctOpnFlg;
            var data = {
                "CmpnObj": "1", //申贷对象
                "BsnTp": "030100", //业务种类
                "GntTp": "1", //发放类型
                "PdNm": that.productName, //产品名称
                "VouTp": "1", //担保方式
                "EntpNm": that.CORP_NAME, //企业名称
                "IdentTp": "610005", //证件类型
                "IdentNo": that.CERT_NO, //营业执照号
                "RgstInst": that.REGI_ORG, //登记机关
                "CoreCstNo": that.CORP_HXKHBH, //核心客户号
                "CoopCstNo": that.CORP_CUST_NO, //信贷客户号
                "BsnCity": that.BUSINESS_CITY, //经营地址市
                "BsnCityCd": that.BUSINESS_CITY_CODE, //经营地址市编码
                "BsnDivsNm": that.BUSINESS_DISTRICT, //经营地址区
                "BsnDivsCd": that.BUSINESS_DISTRICT_CODE, //经营区域编码
                "BrCd": that.CORP_ZZJGDM, //组织机构代码
                "IdentTerm": that.CERTIFICATE_VALIDITY, //组织机构有效期限
                "RgstAdr": that.SCOPE_ID, //注册地址
                "CompanyAdr": that.SCOPE_ID, //经营地址 
                "RgstDt": that.BUILD_DATE, //成立日期
                "BsnScop": that.CORP_BUSINESS_SCOPE, //经营范围
                "Nm": that.LEGAL_PERSON_NAME, //法人名称
                // "Gnd"://性别
                //Race://民族
                // BrthDt://出生日期
                // CertAdr:''//户籍地址
                // LegIdentNo:''//法人证件号码
                // SignOrg:''//签发机关
                // VldTerm:''//有效期限
                // LegIdentTp:''//法人证件类型
                // Province:''//居住地省
                // ProvinceCd:''//省份码值
                // City:''//居住地市
                // CityCd:'',//城市码值
                // DivsNm://居住地区
                // DivsCd:'',//行政区码值
                // Adr:'',//居住地址
                "MblTel": that.NUMBER, //手机号
                "AplAmt": that.APPLY_AMOUNT, //申请金额
                "AplTerm": that.LOAN_TERM, //申请期限
                // "LoanPps":'',//贷款用途
                // "AplyDate":'',//申请日期
                "PactNo": that.BUSINESS_NUM, //合同号
                "BrNo": that.REGI_ORG, //机构码值
                "TlrNo": that.LOAN_MARKETING_NAME, //柜员号
                "Tmstmp": that.TIME_MARK, //影像时间
                // "DECISION_TYPE":""//决策类型
                // "SUGG_TERM":'',//建议期限
                // "SUGG_AMT":'',//建议额度
                // "SUGG_JZDCJB":'',//信用等级（建议调查级别）
                // "QUANT_SCORE":'',//建议利率
                "BrTp": that.TYPE, //企业工商类型
                "AcmFlg": AcctOpnFlg, //新老客户标识
                "CreditCd": that.CORP_ZZJGDM, //统一信用代码
                "LegNm": that.LEGAL_PERSON_NAME, //法人名称
                "CompanyRgstAdr": that.SCOPE_ID, //企业注册地址
                "RgstCap": that.REGI_CAPITAL, //注册资本
                "PdupCap": that.ACT_CAPITA, //实收资本
                "LegCd": that.FrOrg, //法人机构
                "TlrNm": that.selectedAccount, //柜员名称
                "CstMgrNo": that.userid, //营销人工号
                "CstMgrNm": that.usercode //营销机构
            };
            console.log(data);
            console.log(that.REGI_ORG);
            console.log(that.LOAN_MARKETING_NAME);
            that.$api.GetDispatchFlowStart(data).then(function (res) {
                console.log(res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.orgsms(corporCd, that.NUMBER);
                    that.sms(corporCd, that.NUMBER);
                    that.getBurialPoint();
                } else {
                    _this4.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },

        //发送短信模板
        sms: function sms(corporCd, phone) {
            var _this5 = this;

            //经办人短信
            var that = this;
            var key = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
            } else {
                //助企周转贷
                key = '助企周转贷';
            }
            var data = {
                "MblTel": that.accountphone, //贷款和经办人
                "SmyDesc1": that.selectedAccount, //经办人名称
                "SmyDesc2": that.LEGAL_PERSON_NAME, //客户名称
                "SmyDesc3": key,
                "TplNo": "1001020179",
                "BsnTp": "06",
                "LegCd": that.FrOrg,
                // "LegCd":'1147',
                "PactNo": that.BUSINESS_NUM
            };

            console.log(data);

            that.$api.GetMsgSendChk(data).then(function (res) {
                console.log(2, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                } else {
                    _this5.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                }
            });
        },

        //发送短信模板
        orgsms: function orgsms(corporCd, phone) {
            var _this6 = this;

            //客户短信
            var that = this;
            var key = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
            } else {
                //助企周转贷
                key = '助企周转贷';
            }
            var data = {
                "SmyDesc1": that.LEGAL_PERSON_NAME, //客户名称
                "SmyDesc2": key,
                "SmyDesc3": that.selectedAccount, //经办人名称
                "SmyDesc4": that.accountphone, //经办人电话
                "MblTel": that.NUMBER, //贷款和经办人
                "TplNo": "1001020178",
                "BsnTp": "06",
                "LegCd": that.FrOrg,
                // "LegCd":'1147',
                "PactNo": that.BUSINESS_NUM
            };
            console.log(data);
            that.$api.GetMsgSendChk(data).then(function (res) {
                console.log(1, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    _this6.$toast.clear();
                    _this6.$toast({
                        duration: 3000,
                        icon: 'checked',
                        message: '尊敬的' + that.LEGAL_PERSON_NAME + '客户您好，我行已收到您关于' + key + '的业务申请。您的客户经理：' + that.selectedAccount + '，联系电话：' + that.accountphone + '。'
                    });
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                } else {
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                    // this.$toast({
                    //     duration:3000,
                    //     icon: 'warning',
                    //     message: res.Head.RspInf
                    // });
                }
            });
        },
        amountInput: function amountInput() {
            if (!this.APPLY_AMOUNT) {
                this.formHeight.APPLY_AMOUNT = '6rem';
            } else {
                this.formHeight.APPLY_AMOUNT = '4rem';
            }
            var number = this.APPLY_AMOUNT;
            number = Number(number);
            if (number < 0 || number == 0 || number > 300) {
                this.$toast({
                    duration: 3000,
                    icon: 'warning',
                    message: '申请额度范围0-300万元,请输入正确金额!'
                });
                this.APPLY_AMOUNT = '';
            } else {
                number = Math.round(number * 100) / 100;
                this.APPLY_AMOUNT = number;
                console.log(number);
            }
        },
        corpInput: function corpInput() {
            if (!this.CORP_NAME) {
                this.formHeight.CORP_NAME = '6rem';
            } else {
                this.formHeight.CORP_NAME = '4rem';
            }
            this.getintransit();
        },

        // 
        getintransit: function getintransit() {
            var _this7 = this;

            var that = this;
            var data = {
                'Nm': that.CORP_NAME
            };
            that.$api.GetProInTransChk(data).then(function (res) {
                console.log(res, 3);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    _this7.getEnterName();
                } else {
                    _this7.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                    return;
                }
            });
        },
        nameInput: function nameInput() {
            if (!this.LEGAL_PERSON_NAME) {
                this.formHeight.LEGAL_PERSON_NAME = '6rem';
            } else {
                this.formHeight.LEGAL_PERSON_NAME = '4rem';
            }
        },
        numberInput: function numberInput() {
            if (!this.NUMBER) {
                this.formHeight.NUMBER = '6rem';
            } else {
                this.formHeight.NUMBER = '4rem';
            }
            // 这里使用的是简单的中国大陆手机号码正则，根据需要可以进行扩展或修改
            var regex = /^1[3-9]\d{9}$/;
            if (regex.test(this.NUMBER) == false) {
                this.$toast({
                    duration: 3000,
                    icon: 'warning',
                    message: '请输入正确的手机号码!'
                });
                this.NUMBER = '';
            }
        },
        scopeInput: function scopeInput() {
            if (!this.CORP_BUSINESS_SCOPE) {
                this.formHeight.CORP_BUSINESS_SCOPE = '6rem';
            } else {
                this.formHeight.CORP_BUSINESS_SCOPE = '4rem';
            }
        },
        scopeidInput: function scopeidInput() {
            if (!this.SCOPE_ID) {
                this.formHeight.SCOPE_ID = '6rem';
            } else {
                this.formHeight.SCOPE_ID = '4rem';
            }
        },

        // 拍照/上传文件识别营业执照
        // corpupload() {
        //     // 触发文件输入
        //     this.$refs.fileInput.click();
        // },
        // 处理文件选择
        handleFileChange: function handleFileChange(event) {
            var _this8 = this;

            this.imageurl = '';
            var file = event.target.files[0];
            if (file) {
                // 这里可以添加代码来处理文件，例如上传到服务器
                var reader = new FileReader(); // 创建 FileReader 对象
                reader.onload = function (loadEvent) {
                    var base64String = loadEvent.target.result; // 转换完成的Base64字符串
                    _this8.imageurl = base64String;
                };
                reader.readAsDataURL(file); // 将文件读取为DataURL（Base64）
            }
        }
    }

});
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vux-loader/src/script-loader.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/view/loanPage/productIndex.vue

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ var loanPage_productIndex = ({
    name: 'productIndex',
    data: function data() {
        return {
            accountList: [],
            accountPicker: false,
            selectedAccount: '',
            selectedfrOrg: '',
            FRList: [],
            FrOrg: '',
            LOAN_TERMList: ['3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
            FrPicker: false,
            termPicker: false,
            showPicker: false,
            selectedOrg: '',
            orgList: [],
            formHeight: {
                CORP_NAME: '4rem',
                LOAN_TERM: '4rem',
                LEGAL_PERSON_NAME: '4rem',
                NUMBER: '4rem',
                CORP_BUSINESS_SCOPE: '4rem',
                SCOPE_ID: '4rem',
                APPLY_AMOUNT: '4rem',
                CERT_NO: '4rem'

            },
            APPLY_AMOUNT: '',
            CORP_NAME: '',
            LOAN_TERM: '',
            LEGAL_PERSON_NAME: '',
            NUMBER: '',
            CORP_BUSINESS_SCOPE: '',
            SCOPE_ID: '',
            REGI_ORG: '',
            LOAN_MARKETING_NAME: '',
            CERT_TYPE: '', //营业执照类型
            CERT_NO: '', //统一社会信用代码
            TYPE: '', //工商-企业类型
            BUSINESS_CITY: '', //经营城市
            BUSINESS_CITY_CODE: '', //城市编码
            BUSINESS_DISTRICT: '', //经营区域
            BUSINESS_DISTRICT_CODE: '', //区域代码
            CERTIFICATE_VALIDITY: '', //组织机构有效期限
            BUILD_DATE: '', //成立日期
            CORP_CUST_NO: '', //信贷客户号
            CORP_HXKHBH: '', //核心客户号
            CORP_ZZJGDM: '', //组织机构代码
            REGI_CURR: '', // 注册资本币种
            ACT_CURR: '', //实收资本币种
            REGI_CAPITAL: '', // 注册资本
            ACT_CAPITAL: '', // 实收资本
            TIME_MARK: '', //影像时间
            BUSINESS_NUM: '', //合同号
            productName: '', //产品码值
            accountphone: '',
            userid: '',
            usercode: '',
            openid: ''
        };
    },
    mounted: function mounted() {
        console.log(this.__ctx);
        console.log("production");
    },
    created: function created() {
        if (this.$route.query.id == '1') {
            //id=1 助企流水贷
            this.productName = '030113';
        } else {
            //助企周转贷
            this.productName = '030114';
        }
        this.userid = this.$route.query.userid;
        this.usercode = this.$route.query.usercode;
        this.openid = this.$route.query.openid;
    },

    methods: {
        termConfirm: function termConfirm(item) {
            this.LOAN_TERM = item;
            this.termPicker = false;
        },
        accountConfirm: function accountConfirm(item) {
            // // 使用Fisher-Yates算法打乱数组
            console.log(this.selectedAccount);
            this.selectedAccount = item.text; // 更新字段显示的是选中项的名称
            this.LOAN_MARKETING_NAME = item.value; // 更新字段显示的是选中项的名称
            this.accountphone = item.phone;
            this.accountPicker = false;
        },
        FrConfirm: function FrConfirm(item) {
            console.log(item);
            this.selectedfrOrg = item.text; // 更新字段显示的是选中项的名称
            this.FrOrg = item.value; // 更新字段显示的是选中项的名称
            this.FrPicker = false;
            this.getChengeOrg(this.FrOrg);
        },

        //获取经办机构
        getChengeOrg: function getChengeOrg(value) {
            var value = value;
            var that = this;
            that.orgList = [];
            that.selectedOrg = '';
            that.REGI_ORG = '';
            var data = {
                RgstUsrId: that.SCOPE_ID, //注册地址
                UsrNm: that.BUSINESS_NUM //合同号
            };
            that.$api.GetOrgSearch(data).then(function (res) {
                console.log(res, 211);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.LegInfArr.length; i++) {
                        if (value == res.Data.LegInfArr[i].LegCd) {
                            for (var j = 0; j < res.Data.LegInfArr[i].BrInfArr.length; j++) {
                                that.orgList.push({
                                    text: res.Data.LegInfArr[i].BrInfArr[j].BrNm,
                                    value: res.Data.LegInfArr[i].BrInfArr[j].BrCd
                                });
                            }
                        }
                    }
                    console.log(that.orgList);
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        handleConfirm: function handleConfirm(item) {

            this.selectedOrg = item.text; // 更新字段显示的是选中项的名称
            this.REGI_ORG = item.value; // 更新字段显示的是选中项的名称
            console.log(this.REGI_ORG, this.selectedOrg);
            this.GetOrgList();
            this.showPicker = false;
        },
        GetOrgList: function GetOrgList() {
            var _this = this;

            var that = this;
            that.accountList = [];
            that.selectedAccount = '';
            that.LOAN_MARKETING_NAME = '';
            var data = {
                "AgnOrg": that.REGI_ORG,
                'PactNo': that.BUSINESS_NUM
            };
            that.$api.GetAccountList(data).then(function (res) {
                console.log(res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.UsrInfArr.length; i++) {
                        that.accountList.push({
                            text: res.Data.UsrInfArr[i].UsrNm,
                            value: res.Data.UsrInfArr[i].UsrId,
                            phone: res.Data.UsrInfArr[i].MblTel
                        });
                    }
                    var array = [].concat(toConsumableArray_default()(_this.accountList));
                    var currentIndex = array.length;
                    var temporaryValue = void 0,
                        randomIndex = void 0;
                    while (0 !== currentIndex) {
                        randomIndex = Math.floor(Math.random() * currentIndex);
                        currentIndex -= 1;
                        temporaryValue = array[currentIndex];
                        array[currentIndex] = array[randomIndex];
                        array[randomIndex] = temporaryValue;
                    }
                    _this.accountList = array;
                } else {
                    _this.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        submit: function submit() {
            var that = this;
            if (!this.CORP_NAME) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入企业名称！'
                });
                return;
            }
            if (!this.LOAN_TERM) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择申请期限！'
                });
                return;
            }
            if (!this.APPLY_AMOUNT) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入申请金额(万元)！'
                });
                return;
            }
            if (!this.LEGAL_PERSON_NAME) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入法人姓名！'
                });
                return;
            }
            if (!this.NUMBER) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入联系电话！'
                });
                return;
            }
            if (!this.CORP_BUSINESS_SCOPE) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入经营范围！'
                });
                return;
            }
            if (!this.SCOPE_ID) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请输入经营地址！'
                });
                return;
            }
            if (!this.selectedfrOrg) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择法人机构！'
                });
                return;
            }
            if (!this.selectedOrg) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择经办机构！'
                });
                return;
            }
            if (!this.selectedAccount) {
                this.$toast({
                    duration: 3000,
                    icon: 'clear',
                    message: '请选择经办人员！'
                });
                return;
            }
            this.$toast.loading({
                duration: 0,
                message: '派单发起中...',
                forbidClick: true
            });
            that.getplms130();
        },
        getEnterName: function getEnterName() {
            //获取合同号

            var that = this;
            var data = {};
            that.$api.GetBussines(data).then(function (res) {

                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.BUSINESS_NUM = res.Data.SpecificData;
                    that.BusinessNumber();
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        BusinessNumber: function BusinessNumber() {
            var _this2 = this;

            //工商查询
            var that = this;
            var orgcode = '';
            if (this.usercode) {
                orgcode = this.usercode;
            } else {
                orgcode = '1018';
            }

            var data = {
                "EntpNm": that.CORP_NAME,
                // "EntpNm":'沈阳富仕名嘉商贸有限公司',
                "AgnOrg": orgcode,
                // "AgnOrg":this.usercode,
                "PactNo": that.BUSINESS_NUM
                // "PactNo":'123456'
            };
            that.$api.GetEnterName(data).then(function (res) {
                console.log(111, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.SCOPE_ID = res.Data.CompanyAdr; //经营地址（同注册地址）
                    that.CERT_TYPE = "610005"; // 固定赋值为：610005-营业执照
                    that.CERT_NO = res.Data.CreditCd; // 统一社会信用代码
                    that.CORP_NAME = res.Data.EntpNm; // 企业名称
                    that.TYPE = res.Data.EntpTy; // 工商-企业类型
                    that.BUSINESS_CITY = res.Data.BsnCity; // 经营城市
                    that.BUSINESS_CITY_CODE = res.Data.BsnCityCd; // 经营城市编码
                    that.BUSINESS_DISTRICT = res.Data.CompanyAdr; // 经营区域
                    that.BUSINESS_DISTRICT_CODE = res.Data.BsnDivsCd; // 经营区域编码
                    if (res.Data.BrCd) {
                        that.CORP_ZZJGDM = res.Data.BrCd.substring(0, res.Data.BrCd.length - 1) + '-' + res.Data.BrCd.substring(res.Data.BrCd.length - 1, res.Data.BrCd.length); //组织机构代码
                    }
                    var OPTO = res.Data.VldTerm;
                    if (OPTO == "长期") {
                        OPTO = "9999-12-31";
                    }
                    that.CERTIFICATE_VALIDITY = OPTO; //组织机构有效期限
                    that.CORP_BUSINESS_SCOPE = res.Data.BsnScop; //经营范围
                    that.LEGAL_PERSON_NAME = res.Data.LegNm; //法人姓名
                    // that.NUMBER = res.Data.Tel //电话

                    that.REGI_ORG = res.Data.RgstInst; // 登记机关
                    var REGCAP = res.Data.RgstCap ? res.Data.RgstCap * 10000 : 0;
                    var RECCAP = res.Data.PdupCap ? res.Data.PdupCap * 10000 : 0;
                    that.REGI_CAPITAL = REGCAP; // 注册资本
                    that.ACT_CAPITAL = RECCAP; // 实收资本
                    that.BUILD_DATE = res.Data.RgstDt; // 成立日期
                    that.getplms128();
                } else {
                    _this2.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: "请检查企业名称是否输入正确，并重试！"
                    });
                }
            });
        },

        // 
        getplms128: function getplms128() {
            //法人机构信息查询(非异地)
            var that = this;
            that.FRList = [];
            var data = {
                RgstUsrId: that.SCOPE_ID, //注册地址
                UsrNm: that.BUSINESS_NUM //合同号
            };
            that.$api.GetOrgSearch(data).then(function (res) {
                console.log(res, 111111);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    for (var i = 0; i < res.Data.LegInfArr.length; i++) {
                        that.FRList.push({
                            text: res.Data.LegInfArr[i].LegNm,
                            value: res.Data.LegInfArr[i].LegCd
                        });
                    }
                } else {
                    that.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },
        getplms130: function getplms130() {
            var _this3 = this;

            // 辽宁艾斯兰德科技有限公司
            var data = {
                "IdentTp": "6100AA", //证件类型
                "EntpNm": this.CORP_NAME, //企业名称
                "Flag": "1", //是否进行订单分发字段
                "CstMgrNo": this.LOAN_MARKETING_NAME, //营销人
                "IdentNo": this.CERT_NO, //统一社会信用代码
                "BsnAdr": this.SCOPE_ID, //注册地址
                "AgnOrg": this.REGI_ORG //经办机构

                // var data = {
                //     "IdentCustName":'沈阳富仕名嘉商贸有限公司',
                //     'IdentType':'6100AA',
                //     'IdentNo':'91210105MABNCF6Q56',
                //     'isAllocation':'1',
                //     'RegAddress':'辽宁省沈阳市和平区',
                //     'orgCode':'1096',
                //     'managerId':'112221',

                // }
            };var that = this;
            that.$api.GetStockCstDtMng(data).then(function (res) {
                // that.baseService.post(this.__ctx + '/api/mini/dataGovernance', data).then(res => {
                console.log(1, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    var managerId = res.Data.CstMgrNo;
                    var corporCd = res.Data.LegCd;
                    var orgCode = res.Data.AgnOrg;
                    var phone = res.Data.CstMgrTel;
                    var AcctOpnFlg = res.Data.AcmFlg; //新老客户标识
                    that.CORP_CUST_NO = res.Data.CoopCstNo; //信贷客户号
                    that.CORP_HXKHBH = res.Data.CoreCstNo; //核心客户号
                    that.TIME_MARK = res.Data.Tmstmp;

                    that.startInstance(managerId, corporCd, orgCode, AcctOpnFlg);
                } else if (res.Head.RspSt == '203') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户证件号码与存量客户信息中的证件号码不一致!'
                    });
                } else if (res.Head.RspSt == '204') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '当前用户存在多条客户信息请进行数据治理!'
                    });
                } else if (res.Head.RspSt == '205') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户名称与存量客户信息中的客户名称不一致!'
                    });
                } else if (res.Head.RspSt == '206') {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '该客户认定为新客户但是信贷系统中存在客户信息!'
                    });
                } else {
                    _this3.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: '系统开小差了!'
                    });
                }
            });
        },

        // 埋点
        getBurialPoint: function getBurialPoint() {
            var that = this;
            var key = '';
            var serviceType = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
                serviceType = '8206';
            } else {
                //助企周转贷
                key = '助企周转贷';
                serviceType = '8306';
            }
            var data = {
                CstToken: that.openid, //微信OPENID
                BurTp: '2', //	埋点类型
                BsnTp: serviceType, //	业务类型
                BrNo: '', //	网点机构
                LegCd: that.usercode, //法人机构
                CstMgrNo: that.userid, //	客户经理ID
                PdNo: that.BUSINESS_NUM, //	产品ID
                PdTp: that.LOAN_TERM, //	产品类型
                PdNm: key, //	产品名称
                PdGrp: that.APPLY_AMOUNT, //	产品组
                ChnlSrc: '' //	来源渠道

            };
            console.log(data);
            that.$api.UpBurialPointData(data).then(function (res) {
                console.log(res);
            });
        },
        startInstance: function startInstance(managerId, corporCd, orgCode, AcctOpnFlg) {
            var _this4 = this;

            var that = this;
            var managerId = managerId;
            var corporCd = corporCd;
            var orgCode = orgCode;
            var AcctOpnFlg = AcctOpnFlg;
            var data = {
                "CmpnObj": "1", //申贷对象
                "BsnTp": "030100", //业务种类
                "GntTp": "1", //发放类型
                "PdNm": that.productName, //产品名称
                "VouTp": "1", //担保方式
                "EntpNm": that.CORP_NAME, //企业名称
                "IdentTp": "610005", //证件类型
                "IdentNo": that.CERT_NO, //营业执照号
                "RgstInst": that.REGI_ORG, //登记机关
                "CoreCstNo": that.CORP_HXKHBH, //核心客户号
                "CoopCstNo": that.CORP_CUST_NO, //信贷客户号
                "BsnCity": that.BUSINESS_CITY, //经营地址市
                "BsnCityCd": that.BUSINESS_CITY_CODE, //经营地址市编码
                "BsnDivsNm": that.BUSINESS_DISTRICT, //经营地址区
                "BsnDivsCd": that.BUSINESS_DISTRICT_CODE, //经营区域编码
                "BrCd": that.CORP_ZZJGDM, //组织机构代码
                "IdentTerm": that.CERTIFICATE_VALIDITY, //组织机构有效期限
                "RgstAdr": that.SCOPE_ID, //注册地址
                "CompanyAdr": that.SCOPE_ID, //经营地址 
                "RgstDt": that.BUILD_DATE, //成立日期
                "BsnScop": that.CORP_BUSINESS_SCOPE, //经营范围
                "Nm": that.LEGAL_PERSON_NAME, //法人名称
                // "Gnd"://性别
                //Race://民族
                // BrthDt://出生日期
                // CertAdr:''//户籍地址
                // LegIdentNo:''//法人证件号码
                // SignOrg:''//签发机关
                // VldTerm:''//有效期限
                // LegIdentTp:''//法人证件类型
                // Province:''//居住地省
                // ProvinceCd:''//省份码值
                // City:''//居住地市
                // CityCd:'',//城市码值
                // DivsNm://居住地区
                // DivsCd:'',//行政区码值
                // Adr:'',//居住地址
                "MblTel": that.NUMBER, //手机号
                "AplAmt": that.APPLY_AMOUNT, //申请金额
                "AplTerm": that.LOAN_TERM, //申请期限
                // "LoanPps":'',//贷款用途
                // "AplyDate":'',//申请日期
                "PactNo": that.BUSINESS_NUM, //合同号
                "BrNo": that.REGI_ORG, //机构码值
                "TlrNo": that.LOAN_MARKETING_NAME, //柜员号
                "Tmstmp": that.TIME_MARK, //影像时间
                // "DECISION_TYPE":""//决策类型
                // "SUGG_TERM":'',//建议期限
                // "SUGG_AMT":'',//建议额度
                // "SUGG_JZDCJB":'',//信用等级（建议调查级别）
                // "QUANT_SCORE":'',//建议利率
                "BrTp": that.TYPE, //企业工商类型
                "AcmFlg": AcctOpnFlg, //新老客户标识
                "CreditCd": that.CORP_ZZJGDM, //统一信用代码
                "LegNm": that.LEGAL_PERSON_NAME, //法人名称
                "CompanyRgstAdr": that.SCOPE_ID, //企业注册地址
                "RgstCap": that.REGI_CAPITAL, //注册资本
                "PdupCap": that.ACT_CAPITA, //实收资本
                "LegCd": that.FrOrg, //法人机构
                "TlrNm": that.selectedAccount, //柜员名称
                "CstMgrNo": that.userid, //营销人工号
                "CstMgrNm": that.usercode //营销机构
            };
            console.log(data);
            console.log(that.REGI_ORG);
            console.log(that.LOAN_MARKETING_NAME);
            that.$api.GetDispatchFlowStart(data).then(function (res) {
                console.log(res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    that.orgsms(corporCd, that.NUMBER);
                    that.sms(corporCd, that.NUMBER);
                    that.getBurialPoint();
                } else {
                    _this4.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                }
            });
        },

        //发送短信模板
        sms: function sms(corporCd, phone) {
            var _this5 = this;

            //经办人短信
            var that = this;
            var key = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
            } else {
                //助企周转贷
                key = '助企周转贷';
            }
            var data = {
                "MblTel": that.accountphone, //贷款和经办人
                "SmyDesc1": that.selectedAccount, //经办人名称
                "SmyDesc2": that.LEGAL_PERSON_NAME, //客户名称
                "SmyDesc3": key,
                "TplNo": "1001020179",
                "BsnTp": "06",
                "LegCd": that.FrOrg,
                // "LegCd":'1147',
                "PactNo": that.BUSINESS_NUM
            };

            console.log(data);

            that.$api.GetMsgSendChk(data).then(function (res) {
                console.log(2, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                } else {
                    _this5.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                }
            });
        },

        //发送短信模板
        orgsms: function orgsms(corporCd, phone) {
            var _this6 = this;

            //客户短信
            var that = this;
            var key = '';
            if (that.productName == '030113') {
                //助企流水贷
                key = '助企流水贷';
            } else {
                //助企周转贷
                key = '助企周转贷';
            }
            var data = {
                "SmyDesc1": that.LEGAL_PERSON_NAME, //客户名称
                "SmyDesc2": key,
                "SmyDesc3": that.selectedAccount, //经办人名称
                "SmyDesc4": that.accountphone, //经办人电话
                "MblTel": that.NUMBER, //贷款和经办人
                "TplNo": "1001020178",
                "BsnTp": "06",
                "LegCd": that.FrOrg,
                // "LegCd":'1147',
                "PactNo": that.BUSINESS_NUM
            };
            console.log(data);
            that.$api.GetMsgSendChk(data).then(function (res) {
                console.log(1, res);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    _this6.$toast.clear();
                    _this6.$toast({
                        duration: 3000,
                        icon: 'checked',
                        message: '尊敬的' + that.LEGAL_PERSON_NAME + '客户您好，我行已收到您关于' + key + '的业务申请。您的客户经理：' + that.selectedAccount + '，联系电话：' + that.accountphone + '。'
                    });
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                } else {
                    setTimeout(function () {
                        window.wx.miniProgram.navigateBack({});
                    }, 3000);
                    // this.$toast({
                    //     duration:3000,
                    //     icon: 'warning',
                    //     message: res.Head.RspInf
                    // });
                }
            });
        },
        amountInput: function amountInput() {
            if (!this.APPLY_AMOUNT) {
                this.formHeight.APPLY_AMOUNT = '6rem';
            } else {
                this.formHeight.APPLY_AMOUNT = '4rem';
            }
            var number = this.APPLY_AMOUNT;
            number = Number(number);
            if (number < 0 || number == 0 || number > 300) {
                this.$toast({
                    duration: 3000,
                    icon: 'warning',
                    message: '申请额度范围0-300万元,请输入正确金额!'
                });
                this.APPLY_AMOUNT = '';
            } else {
                number = Math.round(number * 100) / 100;
                this.APPLY_AMOUNT = number;
                console.log(number);
            }
        },
        corpInput: function corpInput() {
            if (!this.CORP_NAME) {
                this.formHeight.CORP_NAME = '6rem';
            } else {
                this.formHeight.CORP_NAME = '4rem';
            }
            this.getintransit();
        },

        // 
        getintransit: function getintransit() {
            var _this7 = this;

            var that = this;
            var data = {
                'Nm': that.CORP_NAME
            };
            that.$api.GetProInTransChk(data).then(function (res) {
                console.log(res, 3);
                if (res.Head.RspSt && res.Head.RspSt == '200') {
                    _this7.getEnterName();
                } else {
                    _this7.$toast({
                        duration: 3000,
                        icon: 'warning',
                        message: res.Head.RspInf
                    });
                    return;
                }
            });
        },
        nameInput: function nameInput() {
            if (!this.LEGAL_PERSON_NAME) {
                this.formHeight.LEGAL_PERSON_NAME = '6rem';
            } else {
                this.formHeight.LEGAL_PERSON_NAME = '4rem';
            }
        },
        numberInput: function numberInput() {
            if (!this.NUMBER) {
                this.formHeight.NUMBER = '6rem';
            } else {
                this.formHeight.NUMBER = '4rem';
            }
            // 这里使用的是简单的中国大陆手机号码正则，根据需要可以进行扩展或修改
            var regex = /^1[3-9]\d{9}$/;
            if (regex.test(this.NUMBER) == false) {
                this.$toast({
                    duration: 3000,
                    icon: 'warning',
                    message: '请输入正确的手机号码!'
                });
                this.NUMBER = '';
            }
        },
        scopeInput: function scopeInput() {
            if (!this.CORP_BUSINESS_SCOPE) {
                this.formHeight.CORP_BUSINESS_SCOPE = '6rem';
            } else {
                this.formHeight.CORP_BUSINESS_SCOPE = '4rem';
            }
        },
        scopeidInput: function scopeidInput() {
            if (!this.SCOPE_ID) {
                this.formHeight.SCOPE_ID = '6rem';
            } else {
                this.formHeight.SCOPE_ID = '4rem';
            }
        },

        // 拍照/上传文件识别营业执照
        // corpupload() {
        //     // 触发文件输入
        //     this.$refs.fileInput.click();
        // },
        // 处理文件选择
        handleFileChange: function handleFileChange(event) {
            var _this8 = this;

            this.imageurl = '';
            var file = event.target.files[0];
            if (file) {
                // 这里可以添加代码来处理文件，例如上传到服务器
                var reader = new FileReader(); // 创建 FileReader 对象
                reader.onload = function (loadEvent) {
                    var base64String = loadEvent.target.result; // 转换完成的Base64字符串
                    _this8.imageurl = base64String;
                };
                reader.readAsDataURL(file); // 将文件读取为DataURL（Base64）
            }
        }
    }

});
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-af20a13e","hasScoped":true,"transformToRequire":{"video":"src","source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vux-loader/src/before-template-compiler-loader.js!./node_modules/vux-loader/src/template-loader.js!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/view/loanPage/productIndex.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"box"},[_vm._m(0),_vm._v(" "),_c('div',{staticClass:"table"},[_c('div',{staticClass:"form",style:({ height: _vm.formHeight.CORP_NAME })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"企业名称","error-message":"请输入企业名称","placeholder":"请输入企业名称"},on:{"blur":_vm.corpInput},model:{value:(_vm.CORP_NAME),callback:function ($$v) {_vm.CORP_NAME=$$v},expression:"CORP_NAME"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.CERT_NO })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"统一社会信用代码","error-message":"请输入统一社会信用代码","disabled":"","placeholder":"请输入统一社会信用代码"},model:{value:(_vm.CERT_NO),callback:function ($$v) {_vm.CERT_NO=$$v},expression:"CERT_NO"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form"},[_c('van-cell-group',[_c('van-field',{attrs:{"readonly":"","label":"申请期限","placeholder":"请选择申请期限"},on:{"click":function($event){_vm.termPicker = true}},model:{value:(_vm.LOAN_TERM),callback:function ($$v) {_vm.LOAN_TERM=$$v},expression:"LOAN_TERM"}}),_vm._v(" "),_c('van-popup',{attrs:{"position":"bottom"},model:{value:(_vm.termPicker),callback:function ($$v) {_vm.termPicker=$$v},expression:"termPicker"}},[_c('van-picker',{attrs:{"show-toolbar":"","columns":_vm.LOAN_TERMList},on:{"confirm":_vm.termConfirm,"cancel":function($event){_vm.termPicker = false}}})],1)],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.APPLY_AMOUNT })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"申请金额(万元)","type":"number","error-message":"请输入申请金额(万元)","placeholder":"请输入申请金额(万元)"},on:{"blur":_vm.amountInput},model:{value:(_vm.APPLY_AMOUNT),callback:function ($$v) {_vm.APPLY_AMOUNT=$$v},expression:"APPLY_AMOUNT"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.LEGAL_PERSON_NAME })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"法人姓名","error-message":"请输入法人姓名","placeholder":"法人姓名"},on:{"blur":_vm.nameInput},model:{value:(_vm.LEGAL_PERSON_NAME),callback:function ($$v) {_vm.LEGAL_PERSON_NAME=$$v},expression:"LEGAL_PERSON_NAME"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.NUMBER })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"联系电话","type":"number","error-message":"请输入联系电话","placeholder":"联系电话"},on:{"blur":_vm.numberInput},model:{value:(_vm.NUMBER),callback:function ($$v) {_vm.NUMBER=$$v},expression:"NUMBER"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.CORP_BUSINESS_SCOPE })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"经营范围","disabled":"","error-message":"请输入经营范围","placeholder":"经营范围"},on:{"blur":_vm.scopeInput},model:{value:(_vm.CORP_BUSINESS_SCOPE),callback:function ($$v) {_vm.CORP_BUSINESS_SCOPE=$$v},expression:"CORP_BUSINESS_SCOPE"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form",style:({ height: _vm.formHeight.SCOPE_ID })},[_c('van-cell-group',[_c('van-field',{attrs:{"label":"经营地址","error-message":"请输入经营地址","disabled":"","placeholder":"经营地址"},on:{"blur":_vm.scopeidInput},model:{value:(_vm.SCOPE_ID),callback:function ($$v) {_vm.SCOPE_ID=$$v},expression:"SCOPE_ID"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"form"},[_c('van-cell-group',[_c('van-field',{attrs:{"readonly":"","label":"法人机构","placeholder":"请选择法人机构"},on:{"click":function($event){_vm.FrPicker = true}},model:{value:(_vm.selectedfrOrg),callback:function ($$v) {_vm.selectedfrOrg=$$v},expression:"selectedfrOrg"}}),_vm._v(" "),_c('van-popup',{attrs:{"position":"bottom"},model:{value:(_vm.FrPicker),callback:function ($$v) {_vm.FrPicker=$$v},expression:"FrPicker"}},[_c('van-picker',{attrs:{"show-toolbar":"","columns":_vm.FRList},on:{"confirm":_vm.FrConfirm,"cancel":function($event){_vm.FrPicker = false}}})],1)],1)],1),_vm._v(" "),_c('div',{staticClass:"form"},[_c('van-cell-group',[_c('van-field',{attrs:{"readonly":"","label":"经办机构","placeholder":"请选择经办机构"},on:{"click":function($event){_vm.showPicker = true}},model:{value:(_vm.selectedOrg),callback:function ($$v) {_vm.selectedOrg=$$v},expression:"selectedOrg"}}),_vm._v(" "),_c('van-popup',{attrs:{"position":"bottom"},model:{value:(_vm.showPicker),callback:function ($$v) {_vm.showPicker=$$v},expression:"showPicker"}},[_c('van-picker',{attrs:{"show-toolbar":"","columns":_vm.orgList},on:{"confirm":_vm.handleConfirm,"cancel":function($event){_vm.showPicker = false}}})],1)],1)],1),_vm._v(" "),_c('div',{staticClass:"form"},[_c('van-cell-group',[_c('van-field',{attrs:{"readonly":"","label":"经办人员","placeholder":"请选择经办人员"},on:{"click":function($event){_vm.accountPicker = true}},model:{value:(_vm.selectedAccount),callback:function ($$v) {_vm.selectedAccount=$$v},expression:"selectedAccount"}}),_vm._v(" "),_c('van-popup',{attrs:{"position":"bottom"},model:{value:(_vm.accountPicker),callback:function ($$v) {_vm.accountPicker=$$v},expression:"accountPicker"}},[_c('van-picker',{attrs:{"show-toolbar":"","columns":_vm.accountList},on:{"confirm":_vm.accountConfirm,"cancel":function($event){_vm.accountPicker = false}}})],1)],1)],1)]),_vm._v(" "),_c('div',{staticClass:"submit",on:{"click":_vm.submit}},[_vm._v("\n        提交\n    ")])])}
var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"head"},[_c('div',{staticClass:"cell"}),_vm._v(" "),_c('h1',{staticStyle:{"font-weight":"normal"}},[_vm._v("企业信息")])])}]
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var view_loanPage_productIndex = (esExports);
// CONCATENATED MODULE: ./src/view/loanPage/productIndex.vue
function injectStyle (ssrContext) {
  __webpack_require__("DwaN")
}
var normalizeComponent = __webpack_require__("VU/8")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-af20a13e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  loanPage_productIndex,
  view_loanPage_productIndex,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var src_view_loanPage_productIndex = __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ "fRJi":
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__("tz60");
__webpack_require__("9uBv");
module.exports = __webpack_require__("iANj").Array.from;


/***/ }),

/***/ "zhzB":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("FZ+f")(false);
// imports


// module
exports.push([module.i, "\n[data-v-af20a13e] .van-picker-column__item .van-ellipsis {\n  width: 80%;\n  line-height: 1.5;\n  white-space: pre-wrap;\n  overflow-wrap: break-word;\n  text-align: center;\n}\n[data-v-af20a13e] .van-field--disabled .van-field__label {\n  color: #646566 !important;\n}\n[data-v-af20a13e] .van-field__label {\n  width: 10rem !important;\n}\n[data-v-af20a13e] .van-icon-arrow:before {\n  margin-top: 0.8rem !important;\n}\n.box[data-v-af20a13e] {\n  width: 100%;\n  height: 100%;\n}\n.head[data-v-af20a13e] {\n  position: relative;\n  width: 100%;\n  height: 4.4rem;\n  line-height: 4.4rem;\n  background-color: #fff;\n  text-align: center;\n  font-size: 0.8rem;\n  border-bottom: 0.1rem solid #ccc;\n}\n.cell[data-v-af20a13e] {\n  width: 4rem;\n  height: 4.4rem;\n  line-height: 4.4rem;\n  position: absolute;\n  left: 1rem;\n  font-size: 1.6rem;\n}\n.title[data-v-af20a13e] {\n  width: 90%;\n  margin: 0 auto;\n  font-size: 1.2rem;\n  font-weight: 700;\n  height: 7.5rem;\n  line-height: 7.5rem;\n}\n.table[data-v-af20a13e] {\n  width: 90%;\n  margin: 3rem auto 0;\n  background-color: #fff;\n  border-radius: 0.4rem;\n  box-shadow: 0 0 0.7rem #ccc;\n  padding: 0.5rem 0;\n}\n.form[data-v-af20a13e] {\n  width: 90%;\n  height: 4rem;\n  line-height: 4rem;\n  margin: 0.5rem auto;\n}\n.van-hairline--top-bottom[data-v-af20a13e]::after,\n.van-hairline-unset--top-bottom[data-v-af20a13e]::after {\n  border-top: 0;\n}\n.van-cell-group[data-v-af20a13e] {\n  background-color: transparent;\n  height: 100%;\n  line-height: 4rem;\n}\n.van-cell[data-v-af20a13e] {\n  background-color: transparent;\n  height: 100%;\n  line-height: 4rem;\n  padding: 0;\n  font-size: 1.2rem;\n}\n.submit[data-v-af20a13e] {\n  width: 90%;\n  height: 4rem;\n  line-height: 4rem;\n  background-color: #fa541c;\n  color: #fff;\n  text-align: center;\n  margin: 3rem auto 0;\n  font-size: 1.4rem;\n  border-radius: 0.5rem;\n}\n[data-v-af20a13e] .van-field__error-message {\n  font-size: 1.5rem;\n  height: 2rem !important;\n  line-height: 2rem !important;\n}\n", ""]);

// exports


/***/ })

});